import urllib.request
import lxml
from bs4 import BeautifulSoup

responseFile = urllib.request.urlopen("http://www.baidu.com")
responseText = responseFile.read()
soup = BeautifulSoup(responseText, "lxml")
titleTag = soup.title
print(titleTag)
